package com.ximcontroller.models;

import java.util.Date;


public abstract class Action
{
	private int id;
	private String name;
	private String description;
	private Workspace workspace;
	private Date timestamp;
	
	
	public Action()
	{
		this.initialize();
	}
	
	public Action(Workspace workspace)
	{
		this.initialize();
		this.workspace = workspace;
	}
	
	public void initialize()
	{
		this.timestamp = new Date();
	}
	
	public int getID()
	{
		return this.id;
	}
	
	public void setID(int id)
	{
		this.id = id;
	}
	
	public String getName()
	{
		return this.name;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
	
	public String getDescription()
	{
		return this.description;
	}
	
	public void setDescription(String description)
	{
		this.description = description;
	}

	public void setWorkspace(Workspace workspace)
	{
		this.workspace = workspace;
	}

	public Workspace getWorkspace()
	{
		return workspace;
	}

	public void setTime(Date time)
	{
		this.timestamp = time;
	}

	public Date getTime()
	{
		return timestamp;
	}
	
	public abstract void doAction();
	
}
